home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Sound / LAME / WarpOS / src / README.B32 < prev    next >
Encoding:
Text File  |  2001-06-12  |  2.1 KB  |  63 lines

  1.  
  2. Compiling LAME with Borland C++
  3. ===============================
  4.  
  5. by Magnus Holmgren <lear@algonet.se>
  6.  
  7. (LAME's homepage is http://www.mp3dev.org, and LAME is distributed
  8. under the LGPL. More information is in the README file)
  9.  
  10. Compiling
  11. ---------
  12.  
  13. This document assumes you've downloaded the free Borland C++ compiler, 
  14. installed it, and included the appropriate bin folder to the command search 
  15. path. No other software is required - except for the LAME sources then. 
  16.  
  17. Once the compiler is installed, there's not much you need to do. Just CD to 
  18. the lame folder (where you found this file) and type the following:
  19.  
  20.   make -fmakefile.b32
  21.  
  22. Note that during the compilation several warning messages will be displayed. 
  23. This is normal.
  24.  
  25. Speed
  26. -----
  27.  
  28. The Lame you get is no speed deamon, most likely due to missing code 
  29. optimization in the free version. Compiling without optimization makes no 
  30. noticable difference, speed-wise. As a comparison, using "moderate" 
  31. optimizations (-O2) with DJGPP makes Lame more than twice as fast as without 
  32. optimizations. So if you are concerned with speed, DJGPP may be a better 
  33. choice. However, it isn't as easy to compile a DLL with it - or so I've 
  34. read.
  35.  
  36.  
  37. Other customizations
  38. --------------------
  39.  
  40. Compiling libsndfile is fairly easy to do (see below for some makefile notes 
  41. though), but I won't go into how to do that here. 
  42.  
  43. I haven't tried to make all possible flavors of lame with the include 
  44. makefile. You may need to tweak a few things to get it working.
  45.  
  46. Makefile notes
  47. --------------
  48.  
  49. * If compilation targets include folders (e.g., "foo/bar.obj"), make sure "-
  50. o" is the first argument to bcc32, or the object file goes to the wrong 
  51. folder.
  52.  
  53. * To use nasm, change any "segment_code" to "segment code class=code use32" 
  54. and "segment_data" to "segment data class=data use32" in any .nas files you 
  55. want to assemble. Otherwise the linker won't find the function entry point.
  56.  
  57. * To compile the DLL, make sure BladeMP3EncDLL.c includes "machine.h" before 
  58. it includes "BladeMP3EncDLL.h". Note that I haven't actually tested the DLL. 
  59. All I know is that it compiles.
  60.  
  61. * The cmp utility I use for "make test" is a simple home-grown thing.
  62.  
  63.